<?php //include("html-includes/common/carousel.php"); ?>
<div class="col-md-12">
	<div class="row">
		<?php $sortBar = true; include("global-includes/breadcrumbs.php"); ?>
		<h1 class="sectionTitle"><?php echo $page["name"]; ?></h1>
		<?php 
			echo $page["description"];
			
			$itemsPerPage = $settings["number_of_products"];
			$searchTerm = "";
			
			if(getRequestParameter("search_term") !== false)
			{
				$searchTerm = getRequestParameter("search_term");
			}
			$products = searchProducts($searchTerm, $itemsPerPage);
		?>
	</div>
	<div class="row">
		<?php include("global-includes/pagination.php"); ?>
		<?php
			if($settings["number_of_products"] == 1)
			{
				include("html-includes/common/product-detail-list.php"); 
			}
			else 
			{
				include("html-includes/common/product-list.php"); 
			}
		?>
	</div>
	<div class="row">
		<?php include("global-includes/pagination.php"); ?>
	</div>
</div>

